/*
 * @Description: 同步插件
 * @Author: wangqi
 * @Date: 2021-04-24 21:58:01
 * @LastEditTime: 2021-04-24 22:15:32
 */

/*
    done钩子在emit钩子之后执行
*/

class DonePlugin {
    apply(compiler) {
        console.log(1);
        compiler.hooks.done.tap('DonePlugin', (stats) => {
            console.log('同步编译完成');
        })
    }
}

module.exports = DonePlugin;
